#include<iostream>
using namespace std;
class Person
{
public:
	int m_a;
	int m_b;
	Person ():m_a(10),m_b(10){}
	Person operator+(int n)
	{
		Person tem;
		tem.m_a = this->m_a + n;
		tem.m_b = this->m_b + n;
		return tem;
	}
};
int main()
{
	Person p1;
	Person p2;
	p2 = p1 + 10;
	 
	cout << p2.m_a << " " << p2.m_b << endl;
	return 0;
}